﻿
namespace SPL.Windows.Forms
{
	/// <summary>
	/// abstract Kvt typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class KvtDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<KvtDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.Kvt _currentKvt = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxKvtDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxKvtErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxKvtBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the Id property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIdDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I1InputDate property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI1InputDateDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I9KhiVaoDoGppNhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI9KhiVaoDoGppNhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I21XeBonFiqBupro property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI21XeBonFiqBuproDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I34NhapCondBh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI34NhapCondBhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I35MeBhSoKctv property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI35MeBhSoKctvDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I36NhapCondBhTuTk125 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI36NhapCondBhTuTk125DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I37NhapLpgTuTk107 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI37NhapLpgTuTk107DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I38Fqic1011 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI38Fqic1011DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I39Fqic1012 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI39Fqic1012DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I41XuatCondBhTheoMe property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI41XuatCondBhTheoMeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I42XuatCondBhLenhXuatSo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI42XuatCondBhLenhXuatSoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I43MeTdXuatBupro property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI43MeTdXuatBuproDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I44TankXuatBupro property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI44TankXuatBuproDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I45GiamDinhXuatBupro property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI45GiamDinhXuatBuproDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I46XuatKhacLpg property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI46XuatKhacLpgDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I47XuatKhacCondBh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI47XuatKhacCondBhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I48XaDotLpg property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI48XaDotLpgDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I49XaDotCondBh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI49XaDotCondBhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I52XaDotKahxntlpg property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI52XaDotKahxntlpgDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I53XaDotKahxntCond property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI53XaDotKahxntCondDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I54XuatCondBhTank property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI54XuatCondBhTankDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I55XuatCondBhGiamDinh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI55XuatCondBhGiamDinhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I56TonCondBh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI56TonCondBhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I57TonBupro property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI57TonBuproDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I58TenMeMncs property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI58TenMeMncsDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I59VaoDoz3002 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI59VaoDoz3002DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I60RaDoz7900 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI60RaDoz7900DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I61MeMncsSoLift property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI61MeMncsSoLiftDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I62XuatMeMncs property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI62XuatMeMncsDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I63TonCondNcsTaiKctv property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI63TonCondNcsTaiKctvDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I64XuatCondNcsTheoTank property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI64XuatCondNcsTheoTankDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I65XuatCondNcsTheoGiamDinh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I66SuKienVanHanh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI66SuKienVanHanhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I67NoteBcn property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI67NoteBcnDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I68NoteQlsplbh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI68NoteQlsplbhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I69NoteCondBhMe property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI69NoteCondBhMeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I70NoteGdme property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI70NoteGdmeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I71NoteMncs property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI71NoteMncsDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the Status property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxStatusDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the InputUser property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxInputUserDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the Hid property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxHidDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the CreatedDate property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxCreatedDateDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.Status> _StatusList;
		
		/// <summary> 
		/// The list of selectable Status
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Status> StatusList
		{
			get {return this._StatusList;}
			set 
			{
				this._StatusList = value;
				this.uxStatusDataGridViewColumn.DataSource = null;
				this.uxStatusDataGridViewColumn.DataSource = this._StatusList;
			}
		}
		
		private bool _allowNewItemInStatusList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Status
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInStatusList
		{
			get { return _allowNewItemInStatusList;}
			set
			{
				this._allowNewItemInStatusList = value;
				this.uxStatusDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.User> _InputUserList;
		
		/// <summary> 
		/// The list of selectable User
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.User> InputUserList
		{
			get {return this._InputUserList;}
			set 
			{
				this._InputUserList = value;
				this.uxInputUserDataGridViewColumn.DataSource = null;
				this.uxInputUserDataGridViewColumn.DataSource = this._InputUserList;
			}
		}
		
		private bool _allowNewItemInInputUserList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of User
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInInputUserList
		{
			get { return _allowNewItemInInputUserList;}
			set
			{
				this._allowNewItemInInputUserList = value;
				this.uxInputUserDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Kvt> _HidList;
		
		/// <summary> 
		/// The list of selectable Kvt
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Kvt> HidList
		{
			get {return this._HidList;}
			set 
			{
				this._HidList = value;
				this.uxHidDataGridViewColumn.DataSource = null;
				this.uxHidDataGridViewColumn.DataSource = this._HidList;
			}
		}
		
		private bool _allowNewItemInHidList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Kvt
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInHidList
		{
			get { return _allowNewItemInHidList;}
			set
			{
				this._allowNewItemInHidList = value;
				this.uxHidDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.Kvt> _KvtList;
				
		/// <summary> 
		/// The list of Kvt to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.Kvt> KvtList
		{
			get {return this._KvtList;}
			set
			{
				this._KvtList = value;
				this.uxKvtBindingSource.DataSource = null;
				this.uxKvtBindingSource.DataSource = value;
				this.uxKvtDataGridView.DataSource = null;
				this.uxKvtDataGridView.DataSource = this.uxKvtBindingSource;				
				//this.uxKvtBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxKvtBindingSource_ListChanged);
				this.uxKvtBindingSource.CurrentItemChanged += new System.EventHandler(OnKvtBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnKvtBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentKvt = uxKvtBindingSource.Current as Entities.Kvt;
			
			if (_currentKvt != null)
			{
				_currentKvt.Validate();
			}
			//_Kvt.Validate();
			OnCurrentEntityChanged();
		}

		//void uxKvtBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.Kvt"/> instance.
		/// </summary>
		public Entities.Kvt SelectedKvt
		{
			get {return this._currentKvt;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxKvtDataGridView.VirtualMode;}
			set
			{
				this.uxKvtDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxKvtDataGridView.AllowUserToAddRows;}
			set {this.uxKvtDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxKvtDataGridView.AllowUserToDeleteRows;}
			set {this.uxKvtDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxKvtDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxKvtDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="KvtDataGridViewBase"/> class.
		/// </summary>
		public KvtDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxKvtDataGridView = new System.Windows.Forms.DataGridView();
			this.uxKvtBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxKvtErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIdDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI1InputDateDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI21XeBonFiqBuproDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI34NhapCondBhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI35MeBhSoKctvDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI36NhapCondBhTuTk125DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI37NhapLpgTuTk107DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI38Fqic1011DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI39Fqic1012DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI41XuatCondBhTheoMeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI43MeTdXuatBuproDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI44TankXuatBuproDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI45GiamDinhXuatBuproDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI46XuatKhacLpgDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI47XuatKhacCondBhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI48XaDotLpgDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI49XaDotCondBhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI52XaDotKahxntlpgDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI53XaDotKahxntCondDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI54XuatCondBhTankDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI56TonCondBhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI57TonBuproDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI58TenMeMncsDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI59VaoDoz3002DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI60RaDoz7900DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI61MeMncsSoLiftDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI62XuatMeMncsDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI66SuKienVanHanhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI67NoteBcnDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI68NoteQlsplbhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI69NoteCondBhMeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI70NoteGdmeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI71NoteMncsDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxStatusDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxInputUserDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxHidDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxCreatedDateDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxStatusBindingSource = new StatusBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxStatusBindingSource)).BeginInit();
			//this.uxInputUserBindingSource = new UserBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxInputUserBindingSource)).BeginInit();
			//this.uxHidBindingSource = new KvtBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxHidBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxKvtErrorProvider
			// 
			this.uxKvtErrorProvider.ContainerControl = this;
			this.uxKvtErrorProvider.DataSource = this.uxKvtBindingSource;						
			// 
			// uxKvtDataGridView
			// 
			this.uxKvtDataGridView.AutoGenerateColumns = false;
			this.uxKvtDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxKvtDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIdDataGridViewColumn,
		this.uxI1InputDateDataGridViewColumn,
		this.uxI9KhiVaoDoGppNhapDataGridViewColumn,
		this.uxI21XeBonFiqBuproDataGridViewColumn,
		this.uxI34NhapCondBhDataGridViewColumn,
		this.uxI35MeBhSoKctvDataGridViewColumn,
		this.uxI36NhapCondBhTuTk125DataGridViewColumn,
		this.uxI37NhapLpgTuTk107DataGridViewColumn,
		this.uxI38Fqic1011DataGridViewColumn,
		this.uxI39Fqic1012DataGridViewColumn,
		this.uxI41XuatCondBhTheoMeDataGridViewColumn,
		this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn,
		this.uxI43MeTdXuatBuproDataGridViewColumn,
		this.uxI44TankXuatBuproDataGridViewColumn,
		this.uxI45GiamDinhXuatBuproDataGridViewColumn,
		this.uxI46XuatKhacLpgDataGridViewColumn,
		this.uxI47XuatKhacCondBhDataGridViewColumn,
		this.uxI48XaDotLpgDataGridViewColumn,
		this.uxI49XaDotCondBhDataGridViewColumn,
		this.uxI52XaDotKahxntlpgDataGridViewColumn,
		this.uxI53XaDotKahxntCondDataGridViewColumn,
		this.uxI54XuatCondBhTankDataGridViewColumn,
		this.uxI55XuatCondBhGiamDinhDataGridViewColumn,
		this.uxI56TonCondBhDataGridViewColumn,
		this.uxI57TonBuproDataGridViewColumn,
		this.uxI58TenMeMncsDataGridViewColumn,
		this.uxI59VaoDoz3002DataGridViewColumn,
		this.uxI60RaDoz7900DataGridViewColumn,
		this.uxI61MeMncsSoLiftDataGridViewColumn,
		this.uxI62XuatMeMncsDataGridViewColumn,
		this.uxI63TonCondNcsTaiKctvDataGridViewColumn,
		this.uxI64XuatCondNcsTheoTankDataGridViewColumn,
		this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn,
		this.uxI66SuKienVanHanhDataGridViewColumn,
		this.uxI67NoteBcnDataGridViewColumn,
		this.uxI68NoteQlsplbhDataGridViewColumn,
		this.uxI69NoteCondBhMeDataGridViewColumn,
		this.uxI70NoteGdmeDataGridViewColumn,
		this.uxI71NoteMncsDataGridViewColumn,
		this.uxStatusDataGridViewColumn,
		this.uxInputUserDataGridViewColumn,
		this.uxHidDataGridViewColumn,
		this.uxCreatedDateDataGridViewColumn			});
			this.uxKvtDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxKvtDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxKvtDataGridView.Name = "uxKvtDataGridView";
			this.uxKvtDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxKvtDataGridView.TabIndex = 0;	
			this.uxKvtDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxKvtDataGridView.EnableHeadersVisualStyles = false;
			this.uxKvtDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnKvtDataGridViewDataError);
			this.uxKvtDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnKvtDataGridViewCellValueNeeded);
			this.uxKvtDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnKvtDataGridViewCellValuePushed);
			
			//
			// uxIdDataGridViewColumn
			//
			this.uxIdDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIdDataGridViewColumn.DataPropertyName = "Id";
			this.uxIdDataGridViewColumn.HeaderText = "Id";
			this.uxIdDataGridViewColumn.Name = "uxIdDataGridViewColumn";
			this.uxIdDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIdDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIdDataGridViewColumn.ReadOnly = true;		
			//
			// uxI1InputDateDataGridViewColumn
			//
			this.uxI1InputDateDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI1InputDateDataGridViewColumn.DataPropertyName = "I1InputDate";
			this.uxI1InputDateDataGridViewColumn.HeaderText = "I1InputDate";
			this.uxI1InputDateDataGridViewColumn.Name = "uxI1InputDateDataGridViewColumn";
			this.uxI1InputDateDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI1InputDateDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI1InputDateDataGridViewColumn.ReadOnly = false;		
			//
			// uxI9KhiVaoDoGppNhapDataGridViewColumn
			//
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.DataPropertyName = "I9KhiVaoDoGppNhap";
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.HeaderText = "I9KhiVaoDoGppNhap";
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.Name = "uxI9KhiVaoDoGppNhapDataGridViewColumn";
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI9KhiVaoDoGppNhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI21XeBonFiqBuproDataGridViewColumn
			//
			this.uxI21XeBonFiqBuproDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI21XeBonFiqBuproDataGridViewColumn.DataPropertyName = "I21XeBonFiqBupro";
			this.uxI21XeBonFiqBuproDataGridViewColumn.HeaderText = "I21XeBonFiqBupro";
			this.uxI21XeBonFiqBuproDataGridViewColumn.Name = "uxI21XeBonFiqBuproDataGridViewColumn";
			this.uxI21XeBonFiqBuproDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI21XeBonFiqBuproDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI21XeBonFiqBuproDataGridViewColumn.ReadOnly = false;		
			//
			// uxI34NhapCondBhDataGridViewColumn
			//
			this.uxI34NhapCondBhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI34NhapCondBhDataGridViewColumn.DataPropertyName = "I34NhapCondBh";
			this.uxI34NhapCondBhDataGridViewColumn.HeaderText = "I34NhapCondBh";
			this.uxI34NhapCondBhDataGridViewColumn.Name = "uxI34NhapCondBhDataGridViewColumn";
			this.uxI34NhapCondBhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI34NhapCondBhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI34NhapCondBhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI35MeBhSoKctvDataGridViewColumn
			//
			this.uxI35MeBhSoKctvDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI35MeBhSoKctvDataGridViewColumn.DataPropertyName = "I35MeBhSoKctv";
			this.uxI35MeBhSoKctvDataGridViewColumn.HeaderText = "I35MeBhSoKctv";
			this.uxI35MeBhSoKctvDataGridViewColumn.Name = "uxI35MeBhSoKctvDataGridViewColumn";
			this.uxI35MeBhSoKctvDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI35MeBhSoKctvDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI35MeBhSoKctvDataGridViewColumn.ReadOnly = false;		
			//
			// uxI36NhapCondBhTuTk125DataGridViewColumn
			//
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.DataPropertyName = "I36NhapCondBhTuTk125";
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.HeaderText = "I36NhapCondBhTuTk125";
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.Name = "uxI36NhapCondBhTuTk125DataGridViewColumn";
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI36NhapCondBhTuTk125DataGridViewColumn.ReadOnly = false;		
			//
			// uxI37NhapLpgTuTk107DataGridViewColumn
			//
			this.uxI37NhapLpgTuTk107DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI37NhapLpgTuTk107DataGridViewColumn.DataPropertyName = "I37NhapLpgTuTk107";
			this.uxI37NhapLpgTuTk107DataGridViewColumn.HeaderText = "I37NhapLpgTuTk107";
			this.uxI37NhapLpgTuTk107DataGridViewColumn.Name = "uxI37NhapLpgTuTk107DataGridViewColumn";
			this.uxI37NhapLpgTuTk107DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI37NhapLpgTuTk107DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI37NhapLpgTuTk107DataGridViewColumn.ReadOnly = false;		
			//
			// uxI38Fqic1011DataGridViewColumn
			//
			this.uxI38Fqic1011DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI38Fqic1011DataGridViewColumn.DataPropertyName = "I38Fqic1011";
			this.uxI38Fqic1011DataGridViewColumn.HeaderText = "I38Fqic1011";
			this.uxI38Fqic1011DataGridViewColumn.Name = "uxI38Fqic1011DataGridViewColumn";
			this.uxI38Fqic1011DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI38Fqic1011DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI38Fqic1011DataGridViewColumn.ReadOnly = false;		
			//
			// uxI39Fqic1012DataGridViewColumn
			//
			this.uxI39Fqic1012DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI39Fqic1012DataGridViewColumn.DataPropertyName = "I39Fqic1012";
			this.uxI39Fqic1012DataGridViewColumn.HeaderText = "I39Fqic1012";
			this.uxI39Fqic1012DataGridViewColumn.Name = "uxI39Fqic1012DataGridViewColumn";
			this.uxI39Fqic1012DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI39Fqic1012DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI39Fqic1012DataGridViewColumn.ReadOnly = false;		
			//
			// uxI41XuatCondBhTheoMeDataGridViewColumn
			//
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.DataPropertyName = "I41XuatCondBhTheoMe";
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.HeaderText = "I41XuatCondBhTheoMe";
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.Name = "uxI41XuatCondBhTheoMeDataGridViewColumn";
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI41XuatCondBhTheoMeDataGridViewColumn.ReadOnly = false;		
			//
			// uxI42XuatCondBhLenhXuatSoDataGridViewColumn
			//
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.DataPropertyName = "I42XuatCondBhLenhXuatSo";
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.HeaderText = "I42XuatCondBhLenhXuatSo";
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.Name = "uxI42XuatCondBhLenhXuatSoDataGridViewColumn";
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI42XuatCondBhLenhXuatSoDataGridViewColumn.ReadOnly = false;		
			//
			// uxI43MeTdXuatBuproDataGridViewColumn
			//
			this.uxI43MeTdXuatBuproDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI43MeTdXuatBuproDataGridViewColumn.DataPropertyName = "I43MeTdXuatBupro";
			this.uxI43MeTdXuatBuproDataGridViewColumn.HeaderText = "I43MeTdXuatBupro";
			this.uxI43MeTdXuatBuproDataGridViewColumn.Name = "uxI43MeTdXuatBuproDataGridViewColumn";
			this.uxI43MeTdXuatBuproDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI43MeTdXuatBuproDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI43MeTdXuatBuproDataGridViewColumn.ReadOnly = false;		
			//
			// uxI44TankXuatBuproDataGridViewColumn
			//
			this.uxI44TankXuatBuproDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI44TankXuatBuproDataGridViewColumn.DataPropertyName = "I44TankXuatBupro";
			this.uxI44TankXuatBuproDataGridViewColumn.HeaderText = "I44TankXuatBupro";
			this.uxI44TankXuatBuproDataGridViewColumn.Name = "uxI44TankXuatBuproDataGridViewColumn";
			this.uxI44TankXuatBuproDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI44TankXuatBuproDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI44TankXuatBuproDataGridViewColumn.ReadOnly = false;		
			//
			// uxI45GiamDinhXuatBuproDataGridViewColumn
			//
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.DataPropertyName = "I45GiamDinhXuatBupro";
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.HeaderText = "I45GiamDinhXuatBupro";
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.Name = "uxI45GiamDinhXuatBuproDataGridViewColumn";
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI45GiamDinhXuatBuproDataGridViewColumn.ReadOnly = false;		
			//
			// uxI46XuatKhacLpgDataGridViewColumn
			//
			this.uxI46XuatKhacLpgDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI46XuatKhacLpgDataGridViewColumn.DataPropertyName = "I46XuatKhacLpg";
			this.uxI46XuatKhacLpgDataGridViewColumn.HeaderText = "I46XuatKhacLpg";
			this.uxI46XuatKhacLpgDataGridViewColumn.Name = "uxI46XuatKhacLpgDataGridViewColumn";
			this.uxI46XuatKhacLpgDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI46XuatKhacLpgDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI46XuatKhacLpgDataGridViewColumn.ReadOnly = false;		
			//
			// uxI47XuatKhacCondBhDataGridViewColumn
			//
			this.uxI47XuatKhacCondBhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI47XuatKhacCondBhDataGridViewColumn.DataPropertyName = "I47XuatKhacCondBh";
			this.uxI47XuatKhacCondBhDataGridViewColumn.HeaderText = "I47XuatKhacCondBh";
			this.uxI47XuatKhacCondBhDataGridViewColumn.Name = "uxI47XuatKhacCondBhDataGridViewColumn";
			this.uxI47XuatKhacCondBhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI47XuatKhacCondBhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI47XuatKhacCondBhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI48XaDotLpgDataGridViewColumn
			//
			this.uxI48XaDotLpgDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI48XaDotLpgDataGridViewColumn.DataPropertyName = "I48XaDotLpg";
			this.uxI48XaDotLpgDataGridViewColumn.HeaderText = "I48XaDotLpg";
			this.uxI48XaDotLpgDataGridViewColumn.Name = "uxI48XaDotLpgDataGridViewColumn";
			this.uxI48XaDotLpgDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI48XaDotLpgDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI48XaDotLpgDataGridViewColumn.ReadOnly = false;		
			//
			// uxI49XaDotCondBhDataGridViewColumn
			//
			this.uxI49XaDotCondBhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI49XaDotCondBhDataGridViewColumn.DataPropertyName = "I49XaDotCondBh";
			this.uxI49XaDotCondBhDataGridViewColumn.HeaderText = "I49XaDotCondBh";
			this.uxI49XaDotCondBhDataGridViewColumn.Name = "uxI49XaDotCondBhDataGridViewColumn";
			this.uxI49XaDotCondBhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI49XaDotCondBhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI49XaDotCondBhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI52XaDotKahxntlpgDataGridViewColumn
			//
			this.uxI52XaDotKahxntlpgDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI52XaDotKahxntlpgDataGridViewColumn.DataPropertyName = "I52XaDotKahxntlpg";
			this.uxI52XaDotKahxntlpgDataGridViewColumn.HeaderText = "I52XaDotKahxntlpg";
			this.uxI52XaDotKahxntlpgDataGridViewColumn.Name = "uxI52XaDotKahxntlpgDataGridViewColumn";
			this.uxI52XaDotKahxntlpgDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI52XaDotKahxntlpgDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI52XaDotKahxntlpgDataGridViewColumn.ReadOnly = false;		
			//
			// uxI53XaDotKahxntCondDataGridViewColumn
			//
			this.uxI53XaDotKahxntCondDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI53XaDotKahxntCondDataGridViewColumn.DataPropertyName = "I53XaDotKahxntCond";
			this.uxI53XaDotKahxntCondDataGridViewColumn.HeaderText = "I53XaDotKahxntCond";
			this.uxI53XaDotKahxntCondDataGridViewColumn.Name = "uxI53XaDotKahxntCondDataGridViewColumn";
			this.uxI53XaDotKahxntCondDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI53XaDotKahxntCondDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI53XaDotKahxntCondDataGridViewColumn.ReadOnly = false;		
			//
			// uxI54XuatCondBhTankDataGridViewColumn
			//
			this.uxI54XuatCondBhTankDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI54XuatCondBhTankDataGridViewColumn.DataPropertyName = "I54XuatCondBhTank";
			this.uxI54XuatCondBhTankDataGridViewColumn.HeaderText = "I54XuatCondBhTank";
			this.uxI54XuatCondBhTankDataGridViewColumn.Name = "uxI54XuatCondBhTankDataGridViewColumn";
			this.uxI54XuatCondBhTankDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI54XuatCondBhTankDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI54XuatCondBhTankDataGridViewColumn.ReadOnly = false;		
			//
			// uxI55XuatCondBhGiamDinhDataGridViewColumn
			//
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.DataPropertyName = "I55XuatCondBhGiamDinh";
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.HeaderText = "I55XuatCondBhGiamDinh";
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.Name = "uxI55XuatCondBhGiamDinhDataGridViewColumn";
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI55XuatCondBhGiamDinhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI56TonCondBhDataGridViewColumn
			//
			this.uxI56TonCondBhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI56TonCondBhDataGridViewColumn.DataPropertyName = "I56TonCondBh";
			this.uxI56TonCondBhDataGridViewColumn.HeaderText = "I56TonCondBh";
			this.uxI56TonCondBhDataGridViewColumn.Name = "uxI56TonCondBhDataGridViewColumn";
			this.uxI56TonCondBhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI56TonCondBhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI56TonCondBhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI57TonBuproDataGridViewColumn
			//
			this.uxI57TonBuproDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI57TonBuproDataGridViewColumn.DataPropertyName = "I57TonBupro";
			this.uxI57TonBuproDataGridViewColumn.HeaderText = "I57TonBupro";
			this.uxI57TonBuproDataGridViewColumn.Name = "uxI57TonBuproDataGridViewColumn";
			this.uxI57TonBuproDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI57TonBuproDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI57TonBuproDataGridViewColumn.ReadOnly = false;		
			//
			// uxI58TenMeMncsDataGridViewColumn
			//
			this.uxI58TenMeMncsDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI58TenMeMncsDataGridViewColumn.DataPropertyName = "I58TenMeMncs";
			this.uxI58TenMeMncsDataGridViewColumn.HeaderText = "I58TenMeMncs";
			this.uxI58TenMeMncsDataGridViewColumn.Name = "uxI58TenMeMncsDataGridViewColumn";
			this.uxI58TenMeMncsDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI58TenMeMncsDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI58TenMeMncsDataGridViewColumn.ReadOnly = false;		
			//
			// uxI59VaoDoz3002DataGridViewColumn
			//
			this.uxI59VaoDoz3002DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI59VaoDoz3002DataGridViewColumn.DataPropertyName = "I59VaoDoz3002";
			this.uxI59VaoDoz3002DataGridViewColumn.HeaderText = "I59VaoDoz3002";
			this.uxI59VaoDoz3002DataGridViewColumn.Name = "uxI59VaoDoz3002DataGridViewColumn";
			this.uxI59VaoDoz3002DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI59VaoDoz3002DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI59VaoDoz3002DataGridViewColumn.ReadOnly = false;		
			//
			// uxI60RaDoz7900DataGridViewColumn
			//
			this.uxI60RaDoz7900DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI60RaDoz7900DataGridViewColumn.DataPropertyName = "I60RaDoz7900";
			this.uxI60RaDoz7900DataGridViewColumn.HeaderText = "I60RaDoz7900";
			this.uxI60RaDoz7900DataGridViewColumn.Name = "uxI60RaDoz7900DataGridViewColumn";
			this.uxI60RaDoz7900DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI60RaDoz7900DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI60RaDoz7900DataGridViewColumn.ReadOnly = false;		
			//
			// uxI61MeMncsSoLiftDataGridViewColumn
			//
			this.uxI61MeMncsSoLiftDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI61MeMncsSoLiftDataGridViewColumn.DataPropertyName = "I61MeMncsSoLift";
			this.uxI61MeMncsSoLiftDataGridViewColumn.HeaderText = "I61MeMncsSoLift";
			this.uxI61MeMncsSoLiftDataGridViewColumn.Name = "uxI61MeMncsSoLiftDataGridViewColumn";
			this.uxI61MeMncsSoLiftDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI61MeMncsSoLiftDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI61MeMncsSoLiftDataGridViewColumn.ReadOnly = false;		
			//
			// uxI62XuatMeMncsDataGridViewColumn
			//
			this.uxI62XuatMeMncsDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI62XuatMeMncsDataGridViewColumn.DataPropertyName = "I62XuatMeMncs";
			this.uxI62XuatMeMncsDataGridViewColumn.HeaderText = "I62XuatMeMncs";
			this.uxI62XuatMeMncsDataGridViewColumn.Name = "uxI62XuatMeMncsDataGridViewColumn";
			this.uxI62XuatMeMncsDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI62XuatMeMncsDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI62XuatMeMncsDataGridViewColumn.ReadOnly = false;		
			//
			// uxI63TonCondNcsTaiKctvDataGridViewColumn
			//
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.DataPropertyName = "I63TonCondNcsTaiKctv";
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.HeaderText = "I63TonCondNcsTaiKctv";
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.Name = "uxI63TonCondNcsTaiKctvDataGridViewColumn";
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI63TonCondNcsTaiKctvDataGridViewColumn.ReadOnly = false;		
			//
			// uxI64XuatCondNcsTheoTankDataGridViewColumn
			//
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.DataPropertyName = "I64XuatCondNcsTheoTank";
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.HeaderText = "I64XuatCondNcsTheoTank";
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.Name = "uxI64XuatCondNcsTheoTankDataGridViewColumn";
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI64XuatCondNcsTheoTankDataGridViewColumn.ReadOnly = false;		
			//
			// uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn
			//
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.DataPropertyName = "I65XuatCondNcsTheoGiamDinh";
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.HeaderText = "I65XuatCondNcsTheoGiamDinh";
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.Name = "uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn";
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI66SuKienVanHanhDataGridViewColumn
			//
			this.uxI66SuKienVanHanhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI66SuKienVanHanhDataGridViewColumn.DataPropertyName = "I66SuKienVanHanh";
			this.uxI66SuKienVanHanhDataGridViewColumn.HeaderText = "I66SuKienVanHanh";
			this.uxI66SuKienVanHanhDataGridViewColumn.Name = "uxI66SuKienVanHanhDataGridViewColumn";
			this.uxI66SuKienVanHanhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI66SuKienVanHanhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI66SuKienVanHanhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI67NoteBcnDataGridViewColumn
			//
			this.uxI67NoteBcnDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI67NoteBcnDataGridViewColumn.DataPropertyName = "I67NoteBcn";
			this.uxI67NoteBcnDataGridViewColumn.HeaderText = "I67NoteBcn";
			this.uxI67NoteBcnDataGridViewColumn.Name = "uxI67NoteBcnDataGridViewColumn";
			this.uxI67NoteBcnDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI67NoteBcnDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI67NoteBcnDataGridViewColumn.ReadOnly = false;		
			//
			// uxI68NoteQlsplbhDataGridViewColumn
			//
			this.uxI68NoteQlsplbhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI68NoteQlsplbhDataGridViewColumn.DataPropertyName = "I68NoteQlsplbh";
			this.uxI68NoteQlsplbhDataGridViewColumn.HeaderText = "I68NoteQlsplbh";
			this.uxI68NoteQlsplbhDataGridViewColumn.Name = "uxI68NoteQlsplbhDataGridViewColumn";
			this.uxI68NoteQlsplbhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI68NoteQlsplbhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI68NoteQlsplbhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI69NoteCondBhMeDataGridViewColumn
			//
			this.uxI69NoteCondBhMeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI69NoteCondBhMeDataGridViewColumn.DataPropertyName = "I69NoteCondBhMe";
			this.uxI69NoteCondBhMeDataGridViewColumn.HeaderText = "I69NoteCondBhMe";
			this.uxI69NoteCondBhMeDataGridViewColumn.Name = "uxI69NoteCondBhMeDataGridViewColumn";
			this.uxI69NoteCondBhMeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI69NoteCondBhMeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI69NoteCondBhMeDataGridViewColumn.ReadOnly = false;		
			//
			// uxI70NoteGdmeDataGridViewColumn
			//
			this.uxI70NoteGdmeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI70NoteGdmeDataGridViewColumn.DataPropertyName = "I70NoteGdme";
			this.uxI70NoteGdmeDataGridViewColumn.HeaderText = "I70NoteGdme";
			this.uxI70NoteGdmeDataGridViewColumn.Name = "uxI70NoteGdmeDataGridViewColumn";
			this.uxI70NoteGdmeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI70NoteGdmeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI70NoteGdmeDataGridViewColumn.ReadOnly = false;		
			//
			// uxI71NoteMncsDataGridViewColumn
			//
			this.uxI71NoteMncsDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI71NoteMncsDataGridViewColumn.DataPropertyName = "I71NoteMncs";
			this.uxI71NoteMncsDataGridViewColumn.HeaderText = "I71NoteMncs";
			this.uxI71NoteMncsDataGridViewColumn.Name = "uxI71NoteMncsDataGridViewColumn";
			this.uxI71NoteMncsDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI71NoteMncsDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI71NoteMncsDataGridViewColumn.ReadOnly = false;		
			//
			// uxStatusDataGridViewColumn
			//
			this.uxStatusDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxStatusDataGridViewColumn.DataPropertyName = "Status";
			this.uxStatusDataGridViewColumn.HeaderText = "Status";
			this.uxStatusDataGridViewColumn.Name = "uxStatusDataGridViewColumn";
			this.uxStatusDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxStatusDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxStatusDataGridViewColumn.ReadOnly = false;		
			//
			// uxInputUserDataGridViewColumn
			//
			this.uxInputUserDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxInputUserDataGridViewColumn.DataPropertyName = "InputUser";
			this.uxInputUserDataGridViewColumn.HeaderText = "InputUser";
			this.uxInputUserDataGridViewColumn.Name = "uxInputUserDataGridViewColumn";
			this.uxInputUserDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxInputUserDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxInputUserDataGridViewColumn.ReadOnly = false;		
			//
			// uxHidDataGridViewColumn
			//
			this.uxHidDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxHidDataGridViewColumn.DataPropertyName = "Hid";
			this.uxHidDataGridViewColumn.HeaderText = "Hid";
			this.uxHidDataGridViewColumn.Name = "uxHidDataGridViewColumn";
			this.uxHidDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxHidDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxHidDataGridViewColumn.ReadOnly = false;		
			//
			// uxCreatedDateDataGridViewColumn
			//
			this.uxCreatedDateDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxCreatedDateDataGridViewColumn.DataPropertyName = "CreatedDate";
			this.uxCreatedDateDataGridViewColumn.HeaderText = "CreatedDate";
			this.uxCreatedDateDataGridViewColumn.Name = "uxCreatedDateDataGridViewColumn";
			this.uxCreatedDateDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxCreatedDateDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxCreatedDateDataGridViewColumn.ReadOnly = false;		
			//
			// uxStatusDataGridViewColumn
			//				
			this.uxStatusDataGridViewColumn.DisplayMember = "Name";	
			this.uxStatusDataGridViewColumn.ValueMember = "Id";	
			this.uxStatusDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxStatusDataGridViewColumn.DataSource = uxStatusBindingSource;				
				
			//
			// uxInputUserDataGridViewColumn
			//				
			this.uxInputUserDataGridViewColumn.DisplayMember = "Username";	
			this.uxInputUserDataGridViewColumn.ValueMember = "Id";	
			this.uxInputUserDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxInputUserDataGridViewColumn.DataSource = uxInputUserBindingSource;				
				
			//
			// uxHidDataGridViewColumn
			//				
			this.uxHidDataGridViewColumn.DisplayMember = "I1InputDate";	
			this.uxHidDataGridViewColumn.ValueMember = "Id";	
			this.uxHidDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxHidDataGridViewColumn.DataSource = uxHidBindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxKvtDataGridView);
			this.Name = "KvtDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxStatusBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxInputUserBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxHidBindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxKvtBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				KvtDataGridViewEventArgs args = new KvtDataGridViewEventArgs();
				args.Kvt = _currentKvt;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class KvtDataGridViewEventArgs : System.EventArgs
		{
			private Entities.Kvt	_Kvt;
	
			/// <summary>
			/// the  Entities.Kvt instance.
			/// </summary>
			public Entities.Kvt Kvt
			{
				get { return _Kvt; }
				set { _Kvt = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxKvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnKvtDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxKvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnKvtDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxKvtDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIdDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].Id;
						break;
					case "uxI1InputDateDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I1InputDate;
						break;
					case "uxI9KhiVaoDoGppNhapDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I9KhiVaoDoGppNhap;
						break;
					case "uxI21XeBonFiqBuproDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I21XeBonFiqBupro;
						break;
					case "uxI34NhapCondBhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I34NhapCondBh;
						break;
					case "uxI35MeBhSoKctvDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I35MeBhSoKctv;
						break;
					case "uxI36NhapCondBhTuTk125DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I36NhapCondBhTuTk125;
						break;
					case "uxI37NhapLpgTuTk107DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I37NhapLpgTuTk107;
						break;
					case "uxI38Fqic1011DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I38Fqic1011;
						break;
					case "uxI39Fqic1012DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I39Fqic1012;
						break;
					case "uxI41XuatCondBhTheoMeDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I41XuatCondBhTheoMe;
						break;
					case "uxI42XuatCondBhLenhXuatSoDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I42XuatCondBhLenhXuatSo;
						break;
					case "uxI43MeTdXuatBuproDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I43MeTdXuatBupro;
						break;
					case "uxI44TankXuatBuproDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I44TankXuatBupro;
						break;
					case "uxI45GiamDinhXuatBuproDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I45GiamDinhXuatBupro;
						break;
					case "uxI46XuatKhacLpgDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I46XuatKhacLpg;
						break;
					case "uxI47XuatKhacCondBhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I47XuatKhacCondBh;
						break;
					case "uxI48XaDotLpgDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I48XaDotLpg;
						break;
					case "uxI49XaDotCondBhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I49XaDotCondBh;
						break;
					case "uxI52XaDotKahxntlpgDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I52XaDotKahxntlpg;
						break;
					case "uxI53XaDotKahxntCondDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I53XaDotKahxntCond;
						break;
					case "uxI54XuatCondBhTankDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I54XuatCondBhTank;
						break;
					case "uxI55XuatCondBhGiamDinhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I55XuatCondBhGiamDinh;
						break;
					case "uxI56TonCondBhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I56TonCondBh;
						break;
					case "uxI57TonBuproDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I57TonBupro;
						break;
					case "uxI58TenMeMncsDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I58TenMeMncs;
						break;
					case "uxI59VaoDoz3002DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I59VaoDoz3002;
						break;
					case "uxI60RaDoz7900DataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I60RaDoz7900;
						break;
					case "uxI61MeMncsSoLiftDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I61MeMncsSoLift;
						break;
					case "uxI62XuatMeMncsDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I62XuatMeMncs;
						break;
					case "uxI63TonCondNcsTaiKctvDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I63TonCondNcsTaiKctv;
						break;
					case "uxI64XuatCondNcsTheoTankDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I64XuatCondNcsTheoTank;
						break;
					case "uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I65XuatCondNcsTheoGiamDinh;
						break;
					case "uxI66SuKienVanHanhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I66SuKienVanHanh;
						break;
					case "uxI67NoteBcnDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I67NoteBcn;
						break;
					case "uxI68NoteQlsplbhDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I68NoteQlsplbh;
						break;
					case "uxI69NoteCondBhMeDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I69NoteCondBhMe;
						break;
					case "uxI70NoteGdmeDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I70NoteGdme;
						break;
					case "uxI71NoteMncsDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].I71NoteMncs;
						break;
					case "uxStatusDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].Status;
						break;
					case "uxInputUserDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].InputUser;
						break;
					case "uxHidDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].Hid;
						break;
					case "uxCreatedDateDataGridViewColumn":
						e.Value = KvtList[e.RowIndex].CreatedDate;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxKvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnKvtDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxKvtDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIdDataGridViewColumn":
						KvtList[e.RowIndex].Id = (System.Int64)e.Value;
						break;
					case "uxI1InputDateDataGridViewColumn":
						KvtList[e.RowIndex].I1InputDate = (System.DateTime)e.Value;
						break;
					case "uxI9KhiVaoDoGppNhapDataGridViewColumn":
						KvtList[e.RowIndex].I9KhiVaoDoGppNhap = (System.Double)e.Value;
						break;
					case "uxI21XeBonFiqBuproDataGridViewColumn":
						KvtList[e.RowIndex].I21XeBonFiqBupro = (System.Double)e.Value;
						break;
					case "uxI34NhapCondBhDataGridViewColumn":
						KvtList[e.RowIndex].I34NhapCondBh = (System.Double)e.Value;
						break;
					case "uxI35MeBhSoKctvDataGridViewColumn":
						KvtList[e.RowIndex].I35MeBhSoKctv = (System.Double)e.Value;
						break;
					case "uxI36NhapCondBhTuTk125DataGridViewColumn":
						KvtList[e.RowIndex].I36NhapCondBhTuTk125 = (System.Double)e.Value;
						break;
					case "uxI37NhapLpgTuTk107DataGridViewColumn":
						KvtList[e.RowIndex].I37NhapLpgTuTk107 = (System.Double)e.Value;
						break;
					case "uxI38Fqic1011DataGridViewColumn":
						KvtList[e.RowIndex].I38Fqic1011 = (System.Double)e.Value;
						break;
					case "uxI39Fqic1012DataGridViewColumn":
						KvtList[e.RowIndex].I39Fqic1012 = (System.Double)e.Value;
						break;
					case "uxI41XuatCondBhTheoMeDataGridViewColumn":
						KvtList[e.RowIndex].I41XuatCondBhTheoMe = (System.Double)e.Value;
						break;
					case "uxI42XuatCondBhLenhXuatSoDataGridViewColumn":
						KvtList[e.RowIndex].I42XuatCondBhLenhXuatSo = (System.String)e.Value;
						break;
					case "uxI43MeTdXuatBuproDataGridViewColumn":
						KvtList[e.RowIndex].I43MeTdXuatBupro = (System.Double)e.Value;
						break;
					case "uxI44TankXuatBuproDataGridViewColumn":
						KvtList[e.RowIndex].I44TankXuatBupro = (System.Double)e.Value;
						break;
					case "uxI45GiamDinhXuatBuproDataGridViewColumn":
						KvtList[e.RowIndex].I45GiamDinhXuatBupro = (System.Double)e.Value;
						break;
					case "uxI46XuatKhacLpgDataGridViewColumn":
						KvtList[e.RowIndex].I46XuatKhacLpg = (System.Double)e.Value;
						break;
					case "uxI47XuatKhacCondBhDataGridViewColumn":
						KvtList[e.RowIndex].I47XuatKhacCondBh = (System.Double)e.Value;
						break;
					case "uxI48XaDotLpgDataGridViewColumn":
						KvtList[e.RowIndex].I48XaDotLpg = (System.Double)e.Value;
						break;
					case "uxI49XaDotCondBhDataGridViewColumn":
						KvtList[e.RowIndex].I49XaDotCondBh = (System.Double)e.Value;
						break;
					case "uxI52XaDotKahxntlpgDataGridViewColumn":
						KvtList[e.RowIndex].I52XaDotKahxntlpg = (System.Double)e.Value;
						break;
					case "uxI53XaDotKahxntCondDataGridViewColumn":
						KvtList[e.RowIndex].I53XaDotKahxntCond = (System.Double)e.Value;
						break;
					case "uxI54XuatCondBhTankDataGridViewColumn":
						KvtList[e.RowIndex].I54XuatCondBhTank = (System.Double)e.Value;
						break;
					case "uxI55XuatCondBhGiamDinhDataGridViewColumn":
						KvtList[e.RowIndex].I55XuatCondBhGiamDinh = (System.Double)e.Value;
						break;
					case "uxI56TonCondBhDataGridViewColumn":
						KvtList[e.RowIndex].I56TonCondBh = (System.Double)e.Value;
						break;
					case "uxI57TonBuproDataGridViewColumn":
						KvtList[e.RowIndex].I57TonBupro = (System.Double)e.Value;
						break;
					case "uxI58TenMeMncsDataGridViewColumn":
						KvtList[e.RowIndex].I58TenMeMncs = (System.String)e.Value;
						break;
					case "uxI59VaoDoz3002DataGridViewColumn":
						KvtList[e.RowIndex].I59VaoDoz3002 = (System.Double)e.Value;
						break;
					case "uxI60RaDoz7900DataGridViewColumn":
						KvtList[e.RowIndex].I60RaDoz7900 = (System.Double)e.Value;
						break;
					case "uxI61MeMncsSoLiftDataGridViewColumn":
						KvtList[e.RowIndex].I61MeMncsSoLift = (System.String)e.Value;
						break;
					case "uxI62XuatMeMncsDataGridViewColumn":
						KvtList[e.RowIndex].I62XuatMeMncs = (System.Double)e.Value;
						break;
					case "uxI63TonCondNcsTaiKctvDataGridViewColumn":
						KvtList[e.RowIndex].I63TonCondNcsTaiKctv = (System.Double)e.Value;
						break;
					case "uxI64XuatCondNcsTheoTankDataGridViewColumn":
						KvtList[e.RowIndex].I64XuatCondNcsTheoTank = (System.Double)e.Value;
						break;
					case "uxI65XuatCondNcsTheoGiamDinhDataGridViewColumn":
						KvtList[e.RowIndex].I65XuatCondNcsTheoGiamDinh = (System.Double)e.Value;
						break;
					case "uxI66SuKienVanHanhDataGridViewColumn":
						KvtList[e.RowIndex].I66SuKienVanHanh = (System.String)e.Value;
						break;
					case "uxI67NoteBcnDataGridViewColumn":
						KvtList[e.RowIndex].I67NoteBcn = (System.String)e.Value;
						break;
					case "uxI68NoteQlsplbhDataGridViewColumn":
						KvtList[e.RowIndex].I68NoteQlsplbh = (System.String)e.Value;
						break;
					case "uxI69NoteCondBhMeDataGridViewColumn":
						KvtList[e.RowIndex].I69NoteCondBhMe = (System.String)e.Value;
						break;
					case "uxI70NoteGdmeDataGridViewColumn":
						KvtList[e.RowIndex].I70NoteGdme = (System.String)e.Value;
						break;
					case "uxI71NoteMncsDataGridViewColumn":
						KvtList[e.RowIndex].I71NoteMncs = (System.String)e.Value;
						break;
					case "uxStatusDataGridViewColumn":
						KvtList[e.RowIndex].Status = (System.Int32)e.Value;
						break;
					case "uxInputUserDataGridViewColumn":
						KvtList[e.RowIndex].InputUser = (System.Int32)e.Value;
						break;
					case "uxHidDataGridViewColumn":
						KvtList[e.RowIndex].Hid = (System.Int64?)e.Value;
						break;
					case "uxCreatedDateDataGridViewColumn":
						KvtList[e.RowIndex].CreatedDate = (System.DateTime)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
